{include file="tinier/config"}
<ul class="mo-comm-info mo-cols-rows">
	{maccms:gbook num="'.$GLOBALS['config']['gbook']['pagesize'].'" paging="yes" half="3" order="desc" by="id"}
	{assign name="userinfo" value=":model('User')->listData(array('user_id'=>$vo['user_id']),'user_id desc',1)['list'][0]"}
	<li class="mo-part-btsd mo-bord-muted mo-ptxs-5px mo-ptmd-10px mo-mtxs-5px mo-mrxs-5px mo-mlxs-5px"></li>
	<li class="mo-cols-rows mo-maxs-5px mo-mamd-10px">
		<img class="mo-comm-avat mo-part-peer mo-part-coin" src="{$userinfo['user_qq']?'http://q1.qlogo.cn/g?b=qq&nk='.$userinfo['user_qq'].'&s=640':str_replace($install.'static/images/touxiang.png',$cdnpath.'asset/img/avatar.png',mac_get_user_portrait($vo['user_id']))}" />
		<div class="mo-comm-left">
			<span class="mo-part-bold">{:mac_default($userinfo['user_nick_name'],$vo['gbook_name'])}</span>
			<span class="mo-part-more mo-fsxs-12px mo-fssm-14px">{$vo.gbook_time|mac_day}</span>
		</div>
		<div class="mo-comm-left">
			<p class="mo-pzxs-5px">{:mac_default(moJiaFace($vo['gbook_content']),'咦？发现一条空白留言')}</p>
			{if$vo.gbook_reply}
			<div class="mo-part-bbsd mo-bord-muted mo-ptxs-5px mo-ptmd-10px"></div>
			<div class="mo-cols-rows mo-mtxs-10px mo-mtmd-20px">
				<img class="mo-comm-avat mo-part-peer mo-part-coin" src="{$maccms['site_qq']&&$maccms['site_qq']!='123456'?'http://q1.qlogo.cn/g?b=qq&nk='.$maccms['site_qq'].'&s=640':mac_url_img($mojia['other']['icon']['pics'])}"/>
				<div class="mo-comm-left">
					<span class="mo-part-bold mo-text-mojia">管理员</span>
					<span class="mo-part-more mo-fsxs-12px mo-fssm-14px">{$vo.gbook_reply_time|mac_day}</span>
				</div>
				<div class="mo-comm-left">
					<p class="mo-pzxs-5px">{:moJiaFace($vo['gbook_reply'])}</p>
				</div>
			</div>
			{/if}
		</div>
	</li>
	{/maccms:gbook}{if$__PAGING__.record_total==0}
	<li class="mo-coxs-center mo-paxs-5px mo-pamd-10px">还没有人留言哎！</li>
	{/if}
</ul>
{include file="tinier/paging"}